package com.internetCafes.spms.web.tenant.model;

import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
import java.util.Date;


/**
 * 登陆时长记录表
 * 
 * @author Sunny
 * @email rekeeper2011@hotmail.com
 * @date 2019-12-11 17:28:39
 */
public class LandingTimeInfo implements Serializable {

	private static final long serialVersionUID = 1L;
	
    /**
     * 
     */
	private Long id;

    /**
     * 用户id
     */
	private Long userId;

    /**
     * 开始时间
     */
	private Date startTime;

    /**
     * 最后更新时间
     */
	private Date updateTime;

    /**
     * 持续时间
     */
	private Long expire;

	public LandingTimeInfo(){}
	public LandingTimeInfo(Long userId, Date startTime, Date updateTime) {
		this.userId = userId;
		this.startTime = startTime;
		this.updateTime = updateTime;
		this.expire = 0l;
	}

	@JSONField(name = "id")
	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	@JSONField(name = "user_id")
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return userId;
	}

	@JSONField(name = "start_time")
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getStartTime() {
		return startTime;
	}

	@JSONField(name = "update_time")
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	@JSONField(name = "expire")
	public void setExpire(Long expire) {
		this.expire = expire;
	}

	public Long getExpire() {
		return expire;
	}
}
